encodeRedirectURI

abstract suspend fun encodeRedirectURI(request: ResolvedRequestObject, consensus: Consensus, encryptionParameters: EncryptionParameters? = null): DispatchOutcome.RedirectURI(source)

Method forms a suitable authorization response, based on the request and the provided consensus, and then encodes this response to a URI. To this URI, the wallet (caller) must redirect its authorization response

This method is applicable when request contains a ResolvedRequestObject.responseMode which is one of ResponseMode.Query, ResponseMode.QueryJwt, ResponseMode.Fragment or ResponseMode.FragmentJwt

Return

a URI pointing to the verifier to which the wallet(caller) must redirect its response. This URI carries the authorization response

Parameters

consensus

Holder's consensus (positive or negative) to this request